package com.cl.ks.entity;

import com.cl.mvc.entity.JDBaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Lob;

@Entity
@Table(name="ks_flow_comment")
@org.hibernate.annotations.Table(appliesTo = "ks_flow_comment",comment = "点赞表")
@Getter
@Setter
public class KsFlowComment extends JDBaseEntity {
    @ApiModelProperty("目标ID（例如文章ID）")
    @Column(name = "target_id", nullable = false)
    private Integer targetId;

    @ApiModelProperty("目标类型（例如文章、评论等）")
    @Column(name = "target_type", length = 64, nullable = false)
    private String targetType;

    @ApiModelProperty("评论内容")
    @Lob
    @Column(name = "content", nullable = false)
    private String content;

    @ApiModelProperty("父评论ID（如果是回复评论）")
    @Column(name = "parent_id")
    private Integer parentId;
}
